﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Configuration;
using System.Web.UI;
using System.Web.UI.WebControls;
using CRMBiz;
using CRMWeb.Utilities.Context;


namespace CRMWeb.Pages.AM.EzidebitService
{
    public partial class AddPayment : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnAddPayment_Click(object sender, EventArgs e)
        {
            try
            {
                EziDebitService ezidebitservice = new EziDebitService();
                string response = ezidebitservice.AddPayments(WebConfigurationManager.AppSettings["EziDebitDigitalKey"], txtCustId.Text, "", txtDebitDateP.Text, Convert.ToInt64(txtPayAmtP.Text), txtPayRefP.Text, "");
                lblMsg.Text = response;
            }
            catch (Exception ex)
            {
                ErrorHandler.saveErrorLog(ex, CMSContext.CurrentUser.MemberName);
            }
        }
    }
}